
public class Role {
	private double hp=200;
	private double distance;
	private double atk=30;
	private double position=0;
//	private double atkspeed;
//	private int grade=1;
	
	public Role(double hp,double distance,double atk,double position){
		this.hp=hp;
		this.distance=distance;
		this.atk=atk;
		this.position=position;
//		this.atkspeed=atkspeed;
//		this.grade=grade;
	}
	public void setPosition(double position) {
		this.position =this.position+ position;
	}
	public void changePosition(double position) {
		this.position = position;
	}
	public void attack(Role target){
		target.hp=target.hp-atk;
	}
	public void setHp(double hp) {
		this.hp = this.hp+hp;
	}
	public void setAtk(double atk) {
		this.atk =this.atk+ atk;
	}
	public void setDistance(double distance) {
		this.distance = distance;
	}
	public double getPosition() {
		return position;
	}
	public double getHp() {
		return hp;
	}
	public double getDistance() {
		return distance;
	}
	public double getAtk() {
		return atk;
	}
	
	
	
//	public void upgrade(){
//		grade++;
//		hp=hp+20;
//		atk=atk+2;
//	}
//	public void avoid(){
//		
//	}
}
